Component({
    properties: {
        goodsInfo: {
            type: null
        }
    },
    data: {
        supplierData: []
    },
    observers: {
        goodsInfo: function(e) {
            e.supplier && this.setData({
                supplierData: e.supplier
            });
        }
    },
    methods: {
        pushGoodGoto: function(e) {
            var t = e.currentTarget.dataset.itemdata;
            wx.navigateTo({
                url: "/packageA/detail_v2/detail_v2?id=" + t.id
            });
        },
        gotoSupplier: function() {
            wx.navigateTo({
                url: "/packageA/member/supplier/SupplierShop/SupplierShop?id=" + this.data.supplierData.id
            });
        }
    }
});